/**
 * 搜索相关接口
 */
import request from '@/config/request'
import type { CvVideoSearchReqVO } from '@/types/search'

/**
 * 搜索视频
 */
export const searchVideo = (reqVO: CvVideoSearchReqVO) => {
  return request.get({ url: '/platform/video/search', params: reqVO })
}

/**
 * 获取热搜数据
 */
export const getHotSearch = () => {
  return request.get({ url: '/platform/video/hotSearch' })
}
